using UnityEngine;
public class SingleBase<T> :MonoBehaviour where T: new ()
{
    private static T _instance;
    public static T Instance
    {
        get
        {
            return _instance == null ? _instance = new T() : _instance;
        }
    }
}
